<?php
require_once 'models/models_mathang.php';
require_once 'models/models_timkiem.php';
$obTim = new models_timkiem();
$obmh=new models_mathang();
switch ($_GET['mod']){
		case 'timmathang':{
			if($_POST){
				$data['listlh'] = $obTim->timloaihang($_POST['tim']);
				$data['listmhag']=$obmh->_find($_POST['tim']);
				
			}
			$data['listmh']=$obmh->listMatHang();
			require_once 'views/main/timkiem/ketqua.php';
			break;		
		}
		
	}